package com.quanyan.runningriding.service;

import com.quanyan.api.APIResponse;
import com.quanyan.common.Plugin.PageObj;
import com.quanyan.runningriding.entity.db.TbRunSuggest;
import com.quanyan.runningriding.entity.db.TbRunSuggestExample;
import com.quanyan.runningriding.entity.vo.run.req.RunSuggestVo;
import com.quanyan.runningriding.entity.vo.run.resp.RunSuggest;

import java.util.Date;
import java.util.List;

/**
 * 意见反馈
 *
 * @author zhiru.tan
 * @date 2016/9/21 0021
 */
public interface RunSuggestService {
    /**
     * 提交意见反馈
     *
     * @param runSuggestVo
     * @return
     */
    APIResponse<?> suggest(RunSuggestVo runSuggestVo);

    /**
     * 查询意见反馈列表
     *
     * @param userId
     * @param nickname
     * @param content
     * @param startTime
     * @param endTime
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageObj<List<RunSuggest>> suggestList(String userId,String nickname,String content,Date startTime,Date endTime,Integer pageNum,Integer pageSize);

}
